import Vue from 'vue'
import Router from 'vue-router'


// 1. helloword 页面
import hello from '@/components/helloworld'
import Index from '@/views/Index'
import GoodsAdd from '@/views/GoodsAdd'
import GoodsDetail from '@/views/GoodsDetail'
import GoodsSearch from '@/views/GoodsSearch'


Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'index',
      component: Index
    },
    {
      path: '/add/',
      name: 'add',
      component: GoodsAdd
    },
    {
      path: '/detail/',
      name: 'detail',
      component: GoodsDetail
    },
    {
      path: '/search/',
      name: 'search',
      component: GoodsSearch
    },

  ]
})


